import request from "./request.js"

// 首页信息
export const main = (data) => {
    return request({
        url: 'api/index/main',
        method: 'post',
		data:data
    })
}
// 系统配置
export const config = (data) => {
    return request({
        url: 'api/index/config',
        method: 'post',
		data:data
    })
}


// 分类列表
export const attr = (data) => {
    return request({
        url: 'api/index/attr',
        method: 'post',
		data:data
    })
}
// 分类信息
export const attrinfo = (data) => {
    return request({
        url: 'api/index/attrinfo',
        method: 'post',
		data:data
    })
}

// 文章列表
export const articlelist = (data) => {
    return request({
        url: 'api/index/articlelist',
        method: 'post',
		data:data
    })
}


// 文章详情
export const article = (data,hideLoading) => {
    return request({
        url: 'api/index/article',
        method: 'post',
		data:data,
		hideLoading:hideLoading
    })
}

// 收藏
export const collect = (data) => {
    return request({
        url: 'api/index/collect',
        method: 'post',
		data:data,
		hideLoading:true
    })
}

// 申请
export const apply = (data) => {
    return request({
        url: 'api/index/apply',
        method: 'post',
		data:data
    })
}




// 申请记录
export const applylist = (data) => {
    return request({
        url: 'api/index/applylist',
        method: 'post',
		data:data
    })
}
// 浏览记录
export const looklist = (data) => {
    return request({
        url: 'api/index/looklist',
        method: 'post',
		data:data
    })
}
// 收藏记录
export const collectlist = (data) => {
    return request({
        url: 'api/index/collectlist',
        method: 'post',
		data:data
    })
}


// 搜索关键词记录
export const searchlog = (data) => {
    return request({
        url: 'api/index/searchlog',
        method: 'post',
		data:data
    })
}
// 删除关键词
export const delsearchlog = (data) => {
    return request({
        url: 'api/index/delsearchlog',
        method: 'post',
		data:data
    })
}

// 咨询提交
export const zixun = (data) => {
    return request({
        url: 'api/index/zixun',
        method: 'post',
		data:data
    })
}
